Package-level declarations
Types
EN Represents a custom dimension entry with qualifiers and priority. Used by the DimenScaled class to define specific values for screen conditions.
EN Represents a custom Sp entry with qualifiers and priority, for the Compose Sp builder.
EN Singleton object providing functions for physical unit conversion (MM, CM, Inch) and measurement utilities.
EN A Stable class that allows defining custom dimensions based on screen qualifiers (UiModeType, Width, Height, Smallest Width).
EN A Stable Compose class that allows defining custom Sp text dimensions based on screen qualifiers (UiModeType, Width, Height, Smallest Width).
Functions
EN Shared pure-math scaling kernel used by toDynamicScaledDp and toDynamicScaledPx.
EN Internal logic to calculate the scaled SP value before density/font-scale adjustment. PT Lógica interna para calcular o valor SP escalado antes do ajuste de densidade/fonte.
EN Gets the actual value from the Configuration for the given DpQualifier.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Uses the base value by default, but when the device matches the specified uiModeType, it uses modeValue instead. Usage example: 30.hdpMode(50, UiModeType.TELEVISION) → 30.hdp by default, 50.hdp on television.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Returns the original raw Dp value if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Pixel (Float) variant of hdpModePlain. PT Variante em Pixel (Float) de hdpModePlain.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Uses the base value by default, but when the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead. Usage example: 30.hdpQualifier(50, DpQualifier.HEIGHT, 800) → 30.hdp by default, 50.hdp when screenHeightDp >= 800.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Returns the original raw Dp value if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Pixel (Float) variant of hdpQualifierPlain. PT Variante em Pixel (Float) de hdpQualifierPlain.
EN Pixel (Float) variant of hdpQualifier. PT Variante em Pixel (Float) de hdpQualifier.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Uses the base value by default, but when the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver. Usage example: 30.hdpRot(45, DpQualifier.HEIGHT, Orientation.LANDSCAPE) → 30.hdp by default, 45 scaled by HEIGHT in landscape.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Returns the original raw Dp value if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Pixel (Float) variant of hdpRotatePlain. PT Variante em Pixel (Float) de hdpRotatePlain.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Uses the base value by default, but when the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead. Usage example: 30.hdpScreen(50, UiModeType.TELEVISION, DpQualifier.HEIGHT, 800) → 30.hdp by default, 50.hdp on television with height >= 800.
EN Extension for Dp with dynamic scaling based on Screen Height (hDP). Returns the original raw Dp value if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Pixel (Float) variant of hdpScreenPlain. PT Variante em Pixel (Float) de hdpScreenPlain.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for Int with dynamic scaling based on Screen Height (hDP).
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Returns the original raw TextUnit value if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Uses the base value by default, but when the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead. Usage example: 30.hspQualifier(50, DpQualifier.HEIGHT, 800) → 30.hsp by default, 50.hsp when screenHeightDp >= 800.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Returns the original raw TextUnit value if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Pixel (Float) variant of hspQualifierPlain. PT Variante em Pixel (Float) de hspQualifierPlain.
EN Pixel (Float) variant of hspQualifier. PT Variante em Pixel (Float) de hspQualifier.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Extension for Int with dynamic scaling based on Screen Height (hDP).
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Returns the original raw TextUnit value if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Pixel (Float) variant of hspRotatePlain. PT Variante em Pixel (Float) de hspRotatePlain.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Uses the base value by default, but when the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead. Usage example: 30.hspScreen(50, UiModeType.TELEVISION, DpQualifier.HEIGHT, 800) → 30.hsp by default, 50.hsp on television with height >= 800.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Height (hDP). Returns the original raw TextUnit value if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Pixel (Float) variant of hspScreenPlain. PT Variante em Pixel (Float) de hspScreenPlain.
EN remembers the cached TextUnit for toDynamicScaledSp using cacheKey and spStamp. PT remember do TextUnit em cache para toDynamicScaledSp usando cacheKey e spStamp.
EN remembers the cached px Float for toDynamicScaledPx using cacheKey and sspPxStamp. PT remember do Float em px para toDynamicScaledPx usando cacheKey e sspPxStamp.
EN Starts the build chain for the custom dimension DimenScaled from a base Dp. PT Inicia a cadeia de construção para a dimensão customizada DimenScaled a partir de um Dp base.
EN Starts the build chain for the custom dimension DimenScaled from a base Int. Usage example: 100.scaled().screen(...).
EN Starts the build chain for ScaledSp from a base TextUnit (Sp). Usage example: 16.sp.scaledSp().screen(...).
EN Starts the build chain for ScaledSp from a base Int (treated as sp). Usage example: 16.scaledSp().screen(...).
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the device matches the specified uiModeType, it uses modeValue instead. Usage example: 30.sdpMode(50, UiModeType.TELEVISION) → 30.sdp by default, 50.sdp on television.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Returns the original raw Dp value if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Pixel (Float) variant of sdpModePlain. PT Variante em Pixel (Float) de sdpModePlain.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead. Usage example: 30.sdpQualifier(50, DpQualifier.SMALL_WIDTH, 600) → 30.sdp by default, 50.sdp when smallestScreenWidthDp >= 600.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Returns the original raw Dp value if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Pixel (Float) variant of sdpQualifierPlain. PT Variante em Pixel (Float) de sdpQualifierPlain.
EN Pixel (Float) variant of sdpQualifier. PT Variante em Pixel (Float) de sdpQualifier.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver. Usage example: 30.sdpRot(45, DpQualifier.SMALL_WIDTH, Orientation.LANDSCAPE) → 30.sdp by default, 45 scaled by SMALL_WIDTH in landscape.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Returns the original raw Dp value if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Pixel (Float) variant of sdpRotatePlain. PT Variante em Pixel (Float) de sdpRotatePlain.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead. Usage example: 30.sdpScreen(50, UiModeType.TELEVISION, DpQualifier.SMALL_WIDTH, 600) → 30.sdp by default, 50.sdp on television with sw >= 600.
EN Extension for Dp with dynamic scaling based on Smallest Width (swDP). Returns the original raw Dp value if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Pixel (Float) variant of sdpScreenPlain. PT Variante em Pixel (Float) de sdpScreenPlain.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for Int with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original raw TextUnit value if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead. Usage example: 30.sspQualifier(50, DpQualifier.SMALL_WIDTH, 600) → 30.ssp by default, 50.ssp when smallestScreenWidthDp >= 600.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original raw TextUnit value if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Pixel (Float) variant of sspQualifierPlain. PT Variante em Pixel (Float) de sspQualifierPlain.
EN Pixel (Float) variant of sspQualifier. PT Variante em Pixel (Float) de sspQualifier.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Extension for Int with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original raw TextUnit value if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Pixel (Float) variant of sspRotatePlain. PT Variante em Pixel (Float) de sspRotatePlain.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Uses the base value by default, but when the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead. Usage example: 30.sspScreen(50, UiModeType.TELEVISION, DpQualifier.SMALL_WIDTH, 600) → 30.ssp by default, 50.ssp on television with sw >= 600.
EN Extension for TextUnit (Sp) with dynamic scaling based on Smallest Width (swDP). Returns the original raw TextUnit value if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Pixel (Float) variant of sspScreenPlain. PT Variante em Pixel (Float) de sspScreenPlain.
EN Converts a Number (base Dp value) into a dynamically scaled Dp for use in Jetpack Compose.
EN Converts a Number (base value) into a dynamically scaled TextUnit (Sp) for Jetpack Compose.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Uses the base value by default, but when the device matches the specified uiModeType, it uses modeValue instead. Usage example: 30.wdpMode(50, UiModeType.TELEVISION) → 30.wdp by default, 50.wdp on television.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Returns the original raw Dp value if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Pixel (Float) variant of wdpModePlain. PT Variante em Pixel (Float) de wdpModePlain.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Uses the base value by default, but when the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead. Usage example: 30.wdpQualifier(50, DpQualifier.WIDTH, 600) → 30.wdp by default, 50.wdp when screenWidthDp >= 600.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Returns the original raw Dp value if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Pixel (Float) variant of wdpQualifierPlain. PT Variante em Pixel (Float) de wdpQualifierPlain.
EN Pixel (Float) variant of wdpQualifier. PT Variante em Pixel (Float) de wdpQualifier.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Uses the base value by default, but when the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver. Usage example: 30.wdpRot(45, DpQualifier.WIDTH, Orientation.LANDSCAPE) → 30.wdp by default, 45 scaled by WIDTH in landscape.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Returns the original raw Dp value if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Pixel (Float) variant of wdpRotatePlain. PT Variante em Pixel (Float) de wdpRotatePlain.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Uses the base value by default, but when the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead. Usage example: 30.wdpScreen(50, UiModeType.TELEVISION, DpQualifier.WIDTH, 600) → 30.wdp by default, 50.wdp on television with width >= 600.
EN Extension for Dp with dynamic scaling based on Screen Width (wDP). Returns the original raw Dp value if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Pixel (Float) variant of wdpScreenPlain. PT Variante em Pixel (Float) de wdpScreenPlain.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for Int with dynamic scaling based on Screen Width (wDP).
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Returns the original raw TextUnit value if the condition is not met. When the device matches the specified uiModeType, it uses modeValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Uses the base value by default, but when the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead. Usage example: 30.wspQualifier(50, DpQualifier.WIDTH, 600) → 30.wsp by default, 50.wsp when screenWidthDp >= 600.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Returns the original raw TextUnit value if the condition is not met. When the screen metric for qualifierType is >= qualifierValue, it uses qualifiedValue instead.
EN Pixel (Float) variant of wspQualifierPlain. PT Variante em Pixel (Float) de wspQualifierPlain.
EN Pixel (Float) variant of wspQualifier. PT Variante em Pixel (Float) de wspQualifier.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Extension for Int with dynamic scaling based on Screen Width (wDP).
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Returns the original raw TextUnit value if the condition is not met. When the device is in the specified orientation, it uses rotationValue scaled with the given finalQualifierResolver.
EN Pixel (Float) variant of wspRotatePlain. PT Variante em Pixel (Float) de wspRotatePlain.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Returns the original value auto-scaled using the specified qualifier if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Uses the base value by default, but when the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead. Usage example: 30.wspScreen(50, UiModeType.TELEVISION, DpQualifier.WIDTH, 600) → 30.wsp by default, 50.wsp on television with width >= 600.
EN Extension for TextUnit (Sp) with dynamic scaling based on Screen Width (wDP). Returns the original raw TextUnit value if the condition is not met. When the device matches uiModeType AND the screen metric for qualifierType is >= qualifierValue, it uses screenValue instead.
EN Pixel (Float) variant of wspScreenPlain. PT Variante em Pixel (Float) de wspScreenPlain.